import React from 'react'
import ReactDOM from 'react-dom'

let arr = ['xiaoxiong', 'xiaotuzi', 'xiaogege']
let arrHtml = [<li>小熊</li>, <li>小兔子</li>]

class Welcome extends React.Component {
  // constructor(props) {
  //   super(props)
  // }
  render() {
    const list = arr.map((value, index) => {
      return <li>{value}</li>
    })
    return (
      <div>
        <ul>
          { list }
          {/* {arrHtml} */}
        </ul>
      </div>
    )
  }
}

ReactDOM.render(<Welcome/>, document.getElementById('root'))
